<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'inventoryquanity-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>
        <?php echo $form->hiddenField($model,'id');?>
	<div class="row">
		<?php echo $form->labelEx($model,'partno'); ?>
		<?php echo $form->textField($model,'partno',array('size'=>60,'maxlength'=>75)); ?>
		<?php echo $form->error($model,'partno'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'warehouse'); ?>
		<?php echo $form->dropDownList($model,'warehouse',  Warehouse::model()->getList()); ?>
		<?php echo $form->error($model,'warehouse'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'aisle'); ?>
		<?php echo $form->textField($model,'aisle',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'aisle'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'bin'); ?>
		<?php echo $form->textField($model,'bin',array('size'=>1,'maxlength'=>1)); ?>
		<?php echo $form->error($model,'bin'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'minqty'); ?>
		<?php echo $form->textField($model,'minqty'); ?>
		<?php echo $form->error($model,'minqty'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'reorder'); ?>
		<?php echo $form->textField($model,'reorder'); ?>
		<?php echo $form->error($model,'reorder'); ?>
	</div>

	<div class="row_buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->